package cn.gmcx.lazy.izze.mapper;

import cn.gmcx.lazy.izze.pojo.Comments;
import cn.gmcx.lazy.izze.pojo.CommentsVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * <p>
 * 评论表 用户对视频的评论 Mapper 接口
 * </p>
 *
 * @author GMCX
 * @since 2024-06-14
 */
@Mapper
public interface CommentsMapper extends BaseMapper<Comments> {


    List<CommentsVo> selectByVideoId(Integer videoId);

    List<CommentsVo> selectByParentId(Integer parentId);

    Integer addComments(Comments comments);
}
